<include file="Public:head"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('Jquery/check')}">特效审核</a></li>
                    <li class="active">审核列表</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="header smaller lighter blue">
                                    <div class="nav-search col-xs-10" id="nav-search">
                                        <form class="form-search" method="get">
                                            <div class="search_area">
                                                <select name="state" autocomplete="off">
                                                    <option value="">请选择开启状态</option>
                                                    <option value="0"<if condition="$state eq 0 && $state neq ''">selected</if>>
                                                    待审核                                        
                                                    </option>

                                                </select>
                                                <input class="form-control search-query" type="text" name="keyword" autocomplete="off"  placeholder="请输入特效名称" value="{$Think.get.keyword}">
                                                <button class="btn btn-purple btn-sm" type="submit">搜 索 <i class="icon_search icon-on-right bigger-110"></i></button>
                                            </div>
                                        </form>
                                    </div>
                                    <div class='cl'></div>
                                </div>
                                <notempty name='lists'>
                                    <div class="table-responsive">
                                        <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                            <thead>
                                                <tr>
                                                    <th class="center" width='45px'>
                                                        <label>
                                                            <input type="checkbox" class="ace"  autocomplete="off"/>
                                                            <span class="lbl"></span>
                                                        </label>
                                                    </th>
                                                    <th width='45px' class="center">ID</th>
                                                    <th width="180px">标题</th>
                                                    <th width="55px">用户</th>
                                                    <th width='45px'>logo</th>
                                                    <th width='45px'>原创</th>
                                                    <th width='85px'>积分</th>
                                                    <th width='85px'>下载</th>
                                                    <th width="60px">分类</th>
                                                    <th width="90px">来源</th>
                                                    <th width="75px">开启状态</th>
                                                    <th width="60px"><i class="icon-time bigger-110 hidden-480"></i>时间</th>
                                                    <th width="110px">操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="lists" item="row">
                                                <tr>
                                                    <td class="center">
                                                        <label><input type="checkbox" class="ace" name="ids" value="{$row.id}" autocomplete="off" /><span class="lbl"></span></label>
                                                    </td>
                                                    <td class="center">{$row.id}</td>
                                                    <td><a href="__APP__/js/{$row.id}.html" target="_blank">{$row.name|msubstr=0,32,'utf-8',true}</a></td>
                                                    <td><a href="{:U('User/detail',array('id'=>$row['uid']))}"target="_blank">{$row.uid|getSingleField=###,'user','name'}</a></td>
                                                    <td><a class="fancybox_img" title="{$row.title}" href="__APP__/{$row.logo}"><img src="__APP__/{$row.logo}"style="width:45px;height:45px"></a></td>
                                                    <td><if condition="$row.is_original eq 1"><span class="green">是</span><else/>否</if></td> 
                                                <td><a onclick="changeField($(this), 'js', '{$row.id}', 'points')">{$row.points}</a></td>  
                                                <td><a href="__APP__/{$row.zip}">{$row.zip}</a></td>
                                                <td><select onchange="changeMtypes('{$row.id}', this.value)" autocomplete='off'>
                                                        <foreach name="mtypes" item="row2">
                                                            <option value="{$row2.mtype}" <if condition="$row.mtype eq $row2['mtype']">selected</if>>{$row2.name}</option>
                                                        </foreach>
                                                    </select></td>
                                                <!--                                                    <td>{$row.cat_id|getSingleField=###=###,'js_dictionary','name'}</td>-->
                                                <td><a href="{$row.source}" target="_blank">{$row.source}</a></td>
                                                <td><if condition="$row.state eq 0"><span class="green">待审核</span><elseif condition="$row.state eq -1"/>拒绝<elseif condition="$row.state eq 2"/>已推送 <a href="{:U('Jquery/detail',array('id'=>$row['original_id']))}">去审核</a><else/>已通过 <a href="{:U('Jquery/detail',array('id'=>$row['original_id']))}">去修改</a></if></td>
                                                <td>{$row.addtime|date="m-d H:i",###}</td>
                                                <td class="action-buttons">
                                             
                                                <if condition="$row.original_id eq 0">                        
                                                    <a class="green" href="{:U('Jquery/check_detail',array('id'=>$row['id']))}"><i class="icon-pencil bigger-130"></i></a>
                                                </if>
                                                </td>
                                                </tr>
                                            </foreach>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div id="grid-pager" class="ui-state-default  ui-corner-bottom" dir="ltr">
                                        <table width='100%' data-table='temp'  id='modal_del_table'>
                                            <tr>
                                                <td>
                                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                        <a class="purple" href="__APP__/uploads/js" data-rel="tooltip" data-original-title="添加特效">
                                                            <i class="icon-plus-sign bigger-130"></i>
                                                        </a>
                                                        <a class="red" data-toggle="modal" onclick="targetDelTable(0, -1)"  data-rel="tooltip" data-original-title="批量删除">
                                                            <i class="icon-trash bigger-130"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                                <td class='td_pager'><div class='pager'>{$page}</div></td>
                                            </tr>
                                        </table>
                                    </div>
                                    <else/>
                                    <p class='noempty'>没有符合条件的记录！</p>
                                </notempty>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Public:setting" />
    </div>
</div>


<include file="Public:foot" />